<?php
/**
 * @author: 吴昊天<442384644@qq.com>
 * @day: 2020/7/8
 */
declare (strict_types=1);

namespace app\dao\notice;

use app\dao\BaseDao;
use app\model\notice\UserPinkNotice;

/**
 *
 * Class StoreCartDao
 * @package app\dao\order
 */
class UserNoticeDao extends BaseDao
{

    /**
     * 设置模型
     * @return string
     */
    protected function setModel(): string
    {
        return UserPinkNotice::class;
    }

    public function getUserNotice(int $uid)
    {
        return $this->getModel()->where('uid', $uid)->order('id desc')->select()->toArray();
    }
}
